<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Informasi JTK</title>
<!--
<link href="templatemo_style.css" rel="stylesheet" type="text/css" />
-->
<style type="text/css">
@import "<?php echo base_url();?>css/templatemo_style.css";
</style>

</head>
<body>

<div id="templatemo_wrapper">
<div id="templatemo_sidebar">    
<div id="site_title">

<img src="<?php echo base_url();?>images/logo.png" /> 

</div> <!-- end of site_title --> 


<div class="sidebar_box">
<?php 
if($this->session->userdata('logged_in_jtk')) {
	?>
	<h4>
	<b>
	<a href="<?php echo base_url();?>master_data/staff">Data Staff</a>
	<hr>
	<a href="<?php echo base_url();?>master_data/mahasiswa">Data Mahasiswa</a>
	</b>
	</h4>
	<?php
}else{
	?>
	<h3>Login</h3>        	
	<?php echo validation_errors(); ?>
	<?php echo form_open('verifylogin'); ?>
	<table>
	<tr>
	<td>User</td><td>:</td><td><input type="text" name="username" size="15"></td>
	</tr>
	<tr>
	<td>Password</td><td>:</td><td><input type="password" name="password" size="15"></td>
	</tr>
	<tr>
	<td></td><td></td><td><input type="submit" value="Login"></td>
	</tr>
	</table>
	<?php echo form_close(); ?>
	<?php
}
?>

</div>





</div>

<div id="templatemo_content">
<?php
$data['menu'] = $menu;
$this->load->view('menu_view', $data);
?>
<div class="content_box">

<h3>Master Data</h3>
<div class="content_box_inner">
test test
<?php

?>
<div class="buttons">
<?php 
echo form_button(array('id' => 'button-addnew', 'content' => 'Tambah Baru', 'onClick' => "location.href='".site_url()."anggota/add'" ));
echo form_button(array('id' => 'button-view', 'content' => 'Lihat', 'onClick' => "editAction('".site_url()."anggota/view')" ));
echo form_button(array('id' => 'button-edit', 'content' => 'Ubah', 'onClick' => "editAction('".site_url()."anggota/edit')" ));
echo form_button(array('id' => 'button-delete', 'content' => 'Hapus', 'onClick' => "deleteAction('".site_url()."anggota/delete')" ));
?>		
</div>

<table cellpadding="0" cellspacing="0" border="0" class="display" id="display_table">
<thead>
<tr>
<th>ID Anggota</th>
<th>Nama</th>
<th>Alaamt</th>
<th>Pekerjaan</th>
<th>Telepon</th>
<th>Cek</th>
</tr>
</thead>						
<tbody>
<?php
if($anggota_data)
{
	$i = 0;
	foreach ($anggota_data as $row)
	{
		echo '<tr>';
		echo '<td>'.$row->id_anggota.'</td>';
		echo '<td>'.$row->nama_lengkap.'</td>';
		echo '<td>'.$row->alamat.'</td>';
		echo '<td>'.$row->pekerjaan.'</td>';
		echo '<td>'.$row->telpon_1.'</td>';
		echo '<td>'.form_hidden($i, $row->id).form_radio('selected_data', $i).'</td>';
		echo '</tr>';
		$i++;
	}
}
?>	
</tbody>
<tfoot>
<tr>
<th></th>
<th></th>
<th></th>
<th>Jumlah Total</th>
<th>
<?php
echo $jum_anggota->jumlah;				
?></th>
</tr>
</tfoot>
<tfoot>
<tr>
<th>ID Anggota</th>
<th>Nama</th>
<th>Alamat</th>
<th>Pekerjaan</th>
<th>Telepon</th>
<th>Cek</th>
</tr>
</tfoot>

</table>
</div>

</div>


</div>
<div class="cleaner"></div>    
</div>

<?php 
$this->load->view('footer_view');
?>

</body>
</html>
